import request from "@/utils/request";

// 查询优惠劵发放方式列表

export function getSettlement(data) {
  return request({
    url: "/station/classSettlement/list",
    method: "get",
    params: data,
  });
}

export function getSettlementInfo(data) {
  return request({
    url: "/station/classSettlement/" + data.classNo,
    method: "get",
    // params: data
  });
}

export function getIntoSettlement(data) {
  return request({
    url: "/station/classSettlement/initiateClassSe/",
    method: "get",
    params: data,
  });
}

export function getGoSettlement(data) {
  return request({
    url: "/station/classSettlement/createClassSe/",
    method: "get",
    params: data,
  });
}

export function exportClass(data) {
  return request({
    url: "/station/classSettlement/export/",
    method: "get",
    params: data,
  });
}
//补打班结小票
export function exportClassSe(data) {
  return request({
    url: "/station/classSettlement/exportClassSe/",
    method: "get",
    params: data,
  });
}

export function classSettlementSum(data) {
  return request({
    url: "/station/classSettlement/classSettlementSum",
    method: "get",
    params: data,
  });
}

// 修复班结   /station/classSettlement/createClassSeBandEandStation
export function createClassSeBandEandStation(data) {
  return request({
    url: "/station/classSettlement/createClassSeBandEandStation",
    method: "get",
    params: data,
  });
}

// 获取班结人数据
export function getCreateUser(query) {
  return request({
    url: '/station/classSettlement/createList',
    method: 'get',
    params: query
  })
}
// 导出班结表格
export function exportExcel(classNo) {
   return request({
    url:`/classSettlementExport/${classNo}`,
    method:'get'
   })
  }